//this class needs to changed to work with programInfo instead of this product hack
package com.metasoft.flex
{

import flash.events.Event;
import samples.flexstore.Product;

public class ProductEvent extends Event
{
    public static const ADD_PRODUCT:String = "addProduct";
    public static const DUPLICATE_PRODUCT:String = "duplicateProduct";
    public static const REMOVE_PRODUCT:String = "removeProduct";
    public static const PRODUCT_QTY_CHANGE:String = "productQtyChange";
    
    public var product:Product;
    
    //making the default bubbles behavior of the event to true since we want
    //it to bubble out of the ProductListItem and beyond
    public function ProductEvent(type:String, product:Product, bubbles:Boolean=true, cancelable:Boolean=false)
    {
        super(type, bubbles, cancelable);
        this.product = product;
    }
    
}

}